<?php



class LypoStatementMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.LypoStatementMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('statement');
		$tMap->setPhpName('LypoStatement');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('TEXT', 'Text', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('FOR_REGISTRATION', 'ForRegistration', 'boolean', CreoleTypes::BOOLEAN, false, null);

		$tMap->addColumn('YOUTUBE_CODE', 'YoutubeCode', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('VIMEO_CODE', 'VimeoCode', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('DAILYMOTION_CODE', 'DailymotionCode', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('REACTION_COUNT', 'ReactionCount', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('NUM_RESPECTS', 'NumRespects', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('SORTORDER', 'Sortorder', 'int', CreoleTypes::INTEGER, false, null);

	} 
} 